Skip to main content
Version: 2.0

Static Text Template

Case: Template message with Text only

Payload

{
"recipient_type": "individual",
"to": "xxxxx",
"type": "template",
"template": {
"name": "welcome_test",
"language": {
"policy": "deterministic",
"code": "en"
}
},
"metadata": {
"messageId": "xxxxx",
"transactionId": "xxxxx",
"callbackDlrUrl": "http: //xxx.com"
}
}

Note: 'type' field will have the value as 'template' and 'templateID' field refers to template name which should be passed in small characters only and value must not exceed 100 characters. Also, the value in 'callbackDlrUrl' will be honoured only if default DLR URL is configured for your business.

Note: Callback URL is an optional parameter. Please use when you want to change the default URL(configured through smartta). It will only change the domain name, other parameters will be same as configurated in smartta.
Additionally, messageId is also an optional parameter used for identification of the message and must not exceed 100 characters.